package com.example.demo;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

@RestController
public class Test2 {

  @Autowired RestTemplate restTemplate;

  @Autowired accQuery accQuery;

  @RequestMapping(value = "/testjson", method = RequestMethod.POST)
  public UserTest test2(@RequestBody UserTest userTest) {
    userTest.setId("123");
    userTest.setName("wsf");
    return userTest;
  }
}
